package com.yh.gulimall.product.vo;

import com.baomidou.mybatisplus.annotation.TableId;
import com.yh.gulimall.product.entity.AttrEntity;
import lombok.Data;

import java.util.List;

@Data
public class AttrGroupWithAttrsVo {
    /**
     * 	"data": [{
     * 		"attrGroupId": 1,
     * 		"attrGroupName": "主体",
     * 		"sort": 0,
     * 		"descript": "主体",
     * 		"icon": "dd",
     * 		"catelogId": 225,
     * 		"attrs": [{
     * 			"attrId": 7,
     * 			"attrName": "入网型号",
     * 			"searchType": 1,
     * 			"valueType": 0,
     * 			"icon": "xxx",
     * 			"valueSelect": "aaa;bb",
     * 			"attrType": 1,
     * 			"enable": 1,
     * 			"catelogId": 225,
     * 			"showDesc": 1,
     * 			"attrGroupId": null
     *            }
     *            }]* 		},
     */

    /**
     * 分组id
     */
    @TableId
    private Long attrGroupId;
    /**
     * 组名
     */
    private String attrGroupName;
    /**
     * 排序
     */
    private Integer sort;
    /**
     * 描述
     */
    private String descript;
    /**
     * 组图标
     */
    private String icon;
    /**
     * 所属分类id
     */
    private Long catelogId;

    private List<AttrEntity> attrs;

}
